$(function() {
    if (typeof(Storage) !== "undefined")
    {
        $('.wd-loading').show();
       
        $.post(localStorage.domain_app+"/webservice/event/index.php", {
            page: 1,
            user_id: localStorage.userID
        }, function(res) {
            $('.wd-list-event').html(res.html);
            $('#page').val(res.page);
            $('#end_paging').val(res.end_paging);
            $('.wd-loading').hide();
            saveEventID();
            deleteEvent();

        }, "json");
    }
});